{include file="header.html"}
<div id="rightTop">
    <p>{$lang.adv}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=adv&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="adv" />
                <input type="hidden" name="act" value="index" />
                {$lang.title}:
                <input class="queryInput" type="text" name="banner_name" value="{$gets.banner_name|escape}" />
				<select name="banner_catid">
					{foreach key=key item=item from=$banner_catid}
					<option value="{$key}" {if $gets.banner_catid eq $key}selected{/if}>{$item}</option>
					{/foreach}
				</select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=adv">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $advs}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td>{$lang.title}</td>
			<td>广告类别</td>
            <td width="300" >广告位置</td>
            <td width="300">{$lang.link}</td>
            <td class="table-center">{$lang.logo}</td>
            <td class="table-center">{$lang.sort_order}</td>
            <td class="table">显示</td>
            <td class="handler">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$advs item=item}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$item.banner_id}" /></td>
            <td>{$item.banner_name}</td>
            <td>{$banner_catid.$item.banner_catid}</td> 
            <td>{$item.banner_location}</td> 
            <td>{$item.banner_url}</td>
            <td class="table-center"><!--{if $item.banner_pic}--><img src="{$item.banner_pic}" height="30"/><!--{/if}--></td>
            <td class="table-center"><span ectype="inline_edit" fieldname="banner_sort" fieldid="{$item.banner_id}" datatype="pint" maxvalue="255" class="editable" title="{$lang.editable}">{$item.banner_sort}</span></td>
			<td> 
			<!--{if $item.banner_status eq 1}--><img src="templates/style/images/positive_enabled.gif" ectype="inline_edit" fieldname="banner_status" fieldid="{$item.banner_id}" fieldvalue="1" title="{$lang.editable}"/><!--{else}--><img src="templates/style/images/positive_disabled.gif" ectype="inline_edit" fieldname="banner_status" fieldid="{$item.banner_id}" fieldvalue="0" title="{$lang.editable}"/><!--{/if}-->
			</td>
            <td class="handler">
            <a href="index.php?app=adv&amp;act=edit&amp;id={$item.banner_id}">{$lang.edit}</a>
                |
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=adv&amp;act=drop&amp;id={$item.banner_id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="6">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $advs}-->
    <div id="dataFuncs">
        <div id="batchAction" class="left paddingT15">&nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=adv&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
           <!-- <input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
{include file="footer.html"}
